{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "21ba7a66",
   "metadata": {},
   "outputs": [],
   "source": [
    "from  import webdriver"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "b1c4aae7",
   "metadata": {},
   "outputs": [],
   "source": [
    "driver = webdriver.Chrome()\n",
    "driver.get(\"http://www.baidu.com\")\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "358cf435",
   "metadata": {},
   "outputs": [],
   "source": [
    "kw = driver.find_element_by_id(\"kw\")\n",
    "kw.send_keys(\"哈哈\")\n",
    "su = driver.find_element_by_id(\"su\")\n",
    "su.click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "2011e948",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
